package com.job.controller;

import com.job.pojo.UserInfo;
import com.job.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

@Controller
@RequestMapping("Sanyecao_Zhuce")
public class ZhuceController {
    @Autowired
    UserInfoService userInfoService;



    //处理注册请求
    @RequestMapping("/zhuceRequst")
    @ResponseBody
    public HashMap<String,Object> zhuceRequst(UserInfo user){
        System.out.println("我是zhuceRequest");
        HashMap<String,Object> map = new HashMap<String,Object>();
        String info = userInfoService.zhuce(user);
        map.put("info",info);
        return map;
    }
//    //访问注册页面
//    @RequestMapping("/zhuce")
//    public String zhuce(){
//        return  "zhuce";
//    }
}
